<?php $this->_extends('_layouts/default_layout'); ?>
<?php echo $this->_block('title')?>
<?php echo $config['sitename'] ?>

<?php echo $this->_endblock()?>

<?php $this->_block('center'); ?>

<div class="pageMain clearfix">
	<div class="m-left">
		<div class="formCont">
			<h2>贷款咨询</h2>
			<div class="ask_cont">
			<?php foreach ($online as $item):?>
				<dl>
					<dt>	
						<i>Q.</i><strong><?php echo $item->title;?></strong><em><?php echo date('Y-m-d H:i:s',$item->created);?></em>
					</dt>
					<dd>
						<p class="user-t"><?php echo $item->content;?></p>
						<?php if($item->recontent):?>
						<p class="admin-t">管理回复:<?php echo $item->recontent;?></p>
						<?php endif;?>
					</dd>
				</dl>
			<?php endforeach;?>
			</div>
			<div class="bottom_page pagination">
				<?php echo $this->_control('pagination', 'my-pagination', array('pagination' => $pagination,'url_args'=>$param)); ?>
			</div>
			<div class="bank"></div>
			<div class="ask-area">
				<h2>发布咨询</h2>
				<form action="" method="post">
				<table cellspacing="0" cellpadding="0" border="0" width="100%">
					<tbody>
						<tr>
							<th width="60">咨询类型：</th>
							<td>
							<select style="width: 120px" name="type">
							<option value="无">请选择问题分类</option>
												<option value="房产贷款">房产贷款</option>
												<option value="汽车贷款">汽车贷款</option>
												<option value="无抵押贷款">无抵押贷款</option>
												<option value="企业贷款">企业贷款</option>
												<option value="其他">其他</option>
											</select>
							</td>
						</tr>
						<tr>
							<th width="60">您的名字：</th>
							<td><input maxlength="15" type="text" name="name" class="ipt"></td>
						</tr>
						<tr>
							<th width="60">咨询标题：</th>
							<td><input width="350" type="text" name="title" class="ipt"></td>
						</tr>
						<tr>
							<th valign="top">咨询内容：</th>
							<td><textarea name="content"></textarea></td>
						</tr>
						<tr>
							<td align="center" colspan="2"><input type="submit" value="提交咨询" style="padding:3px;"></td>
						</tr>
					</tbody>
				</table>
				</form>
			</div>
		</div>
	</div>
	

<?php $this->_element('topright') ?>

					<?php $this->_endblock(); ?>
					<?php $this->_block('scripts'); ?>

					<?php $this->_endblock(); ?>